package io.kiki.sba.registry.common.model.store;

import io.kiki.sba.registry.compress.CompressedItem;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
public class ZipSubPublisherList extends CompressedItem implements Serializable {
    private static final long serialVersionUID = 1L;
    private final int pubNum;

    public ZipSubPublisherList(byte[] compressedData, int originSize, String encoding, int pubNum) {
        super(compressedData, originSize, encoding);
        this.pubNum = pubNum;
    }


    @Override
    public int size() {
        return super.size() + 4;
    }
}
